<?php
include('../config.php');
include('Projekt/Constants.php');

function __autoload($class){
	include_once(str_replace('_', '/', $class) . ".php");
}

Zend_Registry::set('config', $_config);
Zend_Layout::startMvc(array('layoutPath' => $_config['applicationPath'] . 'views/layouts'));

$front = Zend_Controller_Front::getInstance();
$front->throwExceptions($_config['debug']);
$front->setControllerDirectory($_config['applicationPath'].'controllers');
$front->dispatch();
